home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
littlest
/
littl-st.lha
/
interp.h
< prev
next >
Wrap
Text File
|
1993-08-10
|
1KB
|
43 lines
/*
Little Smalltalk, version 2
Written by Tim Budd, Oregon State University, July 1987
*/
/*
symbolic definitions for the bytecodes
*/
# define Extended 0
# define PushInstance 1
# define PushArgument 2
# define PushTemporary 3
# define PushLiteral 4
# define PushConstant 5
# define AssignInstance 6
# define AssignTemporary 7
# define MarkArguments 8
# define SendMessage 9
# define SendUnary 10
# define SendBinary 11
# define DoPrimitive 13
# define DoSpecial 15
/* a few constants that can be pushed by PushConstant */
# define minusOne 3 /* the value -1 */
# define contextConst 4 /* the current context */
# define nilConst 5 /* the constant nil */
# define trueConst 6 /* the constant true */
# define falseConst 7 /* the constant false */
/* types of special instructions (opcode 15) */
# define SelfReturn 1
# define StackReturn 2
# define Duplicate 4
# define PopTop 5
# define Branch 6
# define BranchIfTrue 7
# define BranchIfFalse 8
# define AndBranch 9
# define OrBranch 10
# define SendToSuper 11